package com.sxf.auth.login.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @description: TODO
 * @Author Leo
 * @date 2024/3/1621:43
 */
@Data
public class RegisterReq {

    @ApiModelProperty(value = "手机号码", required = true)
    @NotBlank(message = "手机号不能为空")
    @Length(min = 11,max = 11,message = "手机号格式不正确")
    private String userMobile;
    /**
     * 默认给一个随机值
     */
    @ApiModelProperty(value = "密码，保留字段")
    private String password="1234";

    @ApiModelProperty(value = "登陆客户端 0:运营端,1：客户端；2:临床管理端；3：受试者,为空默认注册受试者端")
    private String userType;
}
